import request from '@/utils/request'

export const addOneConfig = (data) =>
  request({
    url: '/addOneConfig',
    method: 'put',
    data: data || {}
  })

export const updateOneConfigById = (data) =>
  request({
    url: '/updateOneConfigById',
    method: 'patch',
    data: data || {}
  })

export const getConfigListAll = () =>
  request({
    url: '/getConfigListAll',
    method: 'get'
  })

// export const getOneConfigById = id => request({
//   url: '/getOneConfigById' + id,
//   method: 'get'
// })
